package com.example.demo08;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
//		add(new LoginPage());
//		add(new HackPage());
//		add(new RunningProcessPage());
		add(new PageListPage());
		
//		ActivityThread.
		
//		Context c;
//		getPackageName()
//		getPackageResourcePath()
	}
	
	public void replace(Fragment f) {
		getSupportFragmentManager().beginTransaction().replace(R.id.content, f).commit();
	}

	public void add(Fragment f) {
		getSupportFragmentManager().beginTransaction().add(R.id.content, f).commit();
	}

}
